/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "产品单位",TableName = "Unit")]
    public partial class Unit:BaseEntity
    {
        /// <summary>
       ///单位编号
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="单位编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string UnitId { get; set; }

       /// <summary>
       ///单位名称
       /// </summary>
       [Display(Name ="单位名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string UnitName { get; set; }

       /// <summary>
       ///单位备注
       /// </summary>
       [Display(Name ="单位备注")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string UnitRemark { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="IsDeleted")]
       [Column(TypeName="sbyte")]
       [Editable(true)]
       public sbyte? IsDeleted { get; set; }

       /// <summary>
       ///单位编号
       /// </summary>
       [Display(Name ="单位编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string Unitcode { get; set; }

       
    }
}